import 'package:event_bus/event_bus.dart';

///eventbus 单例工具
class EventBusUtils{

  static final EventBus _instance =  EventBus();

  static EventBus getInstance() {
    // if (null == _instance) {
    //   _instance = new EventBus();
    // }
    return _instance;
  }

  static void destroy(){
   // if(_instance != null){
     _instance.destroy();
   // }
  }

}

